// ------------------------------------------------------ Naming ------------------------------------------------------
Name Dassault Mirage IV
ShortName Mirage_IV
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmirageiv
Model faf.mirageiv
Texture mirageiv
//Third Person Camera Distance
CameraDistance 20.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0
HasGear True
HasWing True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.85
MaxNegativeThrottle 0.0
MaxThrottle 0.85
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.6
TurnLeftSpeed 0.6
//Pitch modifiers
TurnLeftSpeed 0.6
TurnLeftSpeed 0.6
//Roll modifiers
TurnLeftSpeed 0.6
TurnLeftSpeed 0.6
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -99 -10 -63
WheelPosition 1 -99 -10 63
WheelPosition 2 77 -19 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary BOMB
Secondary NONE
ShootDelayPrimary 20
ShootDelaySecondary 0
AlternatePrimary True
AlternateSecondary False
ModePrimary SEMIAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 0 19 0 bay
ShootPointPrimary -80 10 0 bay
BombDelay 20
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 4
MissileSlots 0
AllowAllAmmo True
AcceptAllAmmo True
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 113 31 0
Passengers 1
Passenger 1 76 31 0 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 60
PropSound JetEngine1
PropSoundLength 5
ShootSoundPrimary bomb
ShootSoundSecondary bomb
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 80 47 17 -5 12 15 10
SetupPart airframe 240 -42 11 -7 150 21 14
SetupPart tail 240 -99 11 -8 54 21 14
SetupPart leftWing 180 -69 19 -77 77 10 63
SetupPart engine 72 -121 11 -8 54 21 14
SetupPart rightWing 180 -69 19 12 77 10 63
BulletDetection 5

CollisionPoint 153 22 0 core
CollisionPoint 121 22 0 core
CollisionPoint 153 22 0 core
CollisionPoint 121 22 0 core
CollisionPoint 153 22 0 core
CollisionPoint 121 22 0 core
CollisionPoint 153 22 0 core
CollisionPoint 121 22 0 core
CollisionPoint -28 39 -30 leftWing
CollisionPoint -93 39 -97 leftWing
CollisionPoint -117 39 -97 leftWing
CollisionPoint -105 39 -30 leftWing
CollisionPoint -28 39 30 rightWing
CollisionPoint -93 39 97 rightWing
CollisionPoint -117 39 97 rightWing
CollisionPoint -105 39 30 rightWing
CollisionPoint -188 35 0 tail

BulletSpeed 9
BulletSpread 1

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

AddEmitter flansmod.fmsmoke 1 [-142,28,0] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-142,28,0] [1,1,1] [-2,0,0] 0.2 0.5 0 1 tail
AddEmitter flansmod.fmsmoke 1 [-142,28,0] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail

AddEmitter flansmod.fmsmoke 1 [-142,28,0] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-142,28,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-142,28,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail
AddEmitter flansmod.fmflame 1 [-142,28,0] [3,3,3] [3,0,0] 0.8 2 0 1 tail
